namespace("mk.objects");

mk.objects.StaticObject = function (x, y, width, height, canvas, image, name) {
    mk.objects.Object.call(this, x, y, name);
    this.width = width;
    this.height = height;
    this.image = image;
    this.canvas = canvas;
    this.canvas.drawImage(this.image, this.x, this.y, this.width, this.height).draw();
};
mk.objects.StaticObject.extends(mk.objects.Object);
mk.objects.StaticObject.prototype.getRectangle = function() {
  return {x1:this.x, y1:this.y, x2:this.x+this.width, y2:this.y+this.height}
};

